/**
 * @author loongnoy
 * @version 1.0
 * @created 06-5��-2025 14:43:00
 */
public class BlackBorderDecorator extends ComponentDecorator {

    public BlackBorderDecorator(VisualComponent visualComponent) {
        super(visualComponent);
    }

    @Override
    public void display() {
        super.display(); // 调用父类的 display 方法
        setBlackBorder(); // 添加黑色边框
    }

    public void setBlackBorder() {
        System.out.println("添加黑色边框");
    }
}